package InputStream;import java.io.*;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import static java.lang.Integer.*;public class FileOutputStreamTest {    public static void main(String[] args) {     FileOutputStream fos = null;        try {            fos = new FileOutputStream("myFile.dat");       //一定要刷新            fos.write('H');            fos.write(69);            fos.write(76);            fos.write('L');            fos.write('O');            fos.write('!');        } catch (IOException e) {            e.printStackTrace();        }finally {            if(fos != null){                try {                    fos.flush();                } catch (IOException e) {                    e.printStackTrace();                }            }        }        }    }